<?php 
$banTin=$this->list;
?>




<div class="center_title_bar">Quản lý danh mục bản tin</div>
<div class="prod_box_big">
<div class="top_prod_box_big"></div>
<div class="center_prod_box_big">
<table border="1" id="myTable"
	style="width: 540px; margin-left: 7px; margin-top: -5px;">
	<thead>
		<tr>
			<td>Ma ban tin</td>
<td>Tieu de</td>
<td>Tag</td>
<td>Noi dung</td>
<td>Hinh kem ban tin</td>
<td>Ma danh muc</td>
<td>Edit</td>
<td>Delete</td>
		</tr>
	</thead>

	<tbody>
				<?php for($i=0;$i<count($banTin);$i++){
	$bt = $banTin[$i];
	
	$bt instanceof Application_Model_bean_BanTin;
	$maBanTin = $bt->getMaBanTin();
	$tieuDe= $bt->getTieuDe();
	$tab = $bt->getTab();
	$noiDung = $bt->getNoiDung();
	$hinhKemBanTin =$bt->getHinhKemBanTin();
	$maDanhMuc = $bt->getMaDanhMucBanTin();
?>

<td><?php echo $maBanTin?></td>
<td><?php echo $tieuDe?></td>
<td><?php echo $tab?></td>
<td><?php echo $noiDung?></td>
<td><?php echo $hinhKemBanTin?></td>
<td><?php echo $maDanhMuc?></td>

<td><form action="<?php echo $this->url(array('action'=>'update')); ?>" method="post" >
<input type="submit" value="Update"></input>
<input type="hidden" name="updateBanTin" value="<?php echo $maBanTin;?>"></input>
</form></td>

<td><form action="<?php echo $this->url(array('action'=>'delete')); ?>" method="post" >
<input type="hidden" name="deleteBanTin" value="<?php echo $maBanTin;?>"></input>
<input type="submit" value="Delete"></input>
</form></td>
				</tbody>
				<?php }?>
</table>
</div>
<div class="bottom_prod_box_big"></div>
</div>


